<?php



class ConfigurationMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ConfigurationMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('t_configuration');
		$tMap->setPhpName('Configuration');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, 10);

		$tMap->addColumn('EJE_X', 'EjeX', 'double', CreoleTypes::NUMERIC, true, 10);

		$tMap->addColumn('EJE_Y', 'EjeY', 'double', CreoleTypes::NUMERIC, true, 10);

		$tMap->addColumn('STEP', 'Step', 'double', CreoleTypes::NUMERIC, true, 10);

		$tMap->addColumn('BACKGROUND_COLOR', 'BackgroundColor', 'string', CreoleTypes::VARCHAR, true, 10);

		$tMap->addColumn('FUNCTION_COLOR', 'FunctionColor', 'string', CreoleTypes::VARCHAR, true, 10);

		$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('UPDATED_AT', 'UpdatedAt', 'int', CreoleTypes::TIMESTAMP, true, null);

	} 
} 